package me.leiusual.sharing.ui.base

import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import me.leiusual.sharing.repository.model.StatelessData

/**
 * Create by leiusual on 2018/7/15
 */
abstract class AbstractViewModel : ViewModel() {

  // 标记支付成功（ 用于：之后需要跳转到订单列表页面 ）

  private val _paySuccess = MutableLiveData<StatelessData<Boolean>>()
  val paySuccess: LiveData<StatelessData<Boolean>> = _paySuccess
  fun paySuccess() {
    _paySuccess.value = StatelessData(true)
  }
}